package com.nameless.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nameless.dao.OrderMapper;
import com.nameless.entity.Order;
import com.nameless.service.OrderService;
import com.nameless.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author : 陈灰灰
 * @Date: 2023/03/02/18:58
 * @Description:
 */
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService {
    @Resource
    private OrderMapper orderMapper;
    @Override
    public List<Order> getOrders(Integer clientId) {
        List<Order> orders = orderMapper.getOrdersByClientId(clientId);
        return orders;
    }
}
